import request from "@/utils/request.js";

export function ApiList (data) {
    return request({
        url: '/v1/scheduler/',
        method: 'get',
        params: data
    })
}

export function ApiCreate (data) {
    return request({
        url: '/v1/scheduler/',
        method: 'post',
        data: data
    })
}

export function ApiUpdate (data) {
    return request({
        url: '/v1/scheduler/',
        method: 'put',
        data: data
    })
}

export function ApiDelete (id) {
    return request({
        url: '/v1/scheduler/' + id,
        method: 'delete',
    })
}

export function ApiGetHistories (data) {
    return request({
        url: '/v1/scheduler/histories',
        method: 'get',
        params: data
    })
}

